package com.tanhua.dubbo.server.api;

import com.tanhua.dubbo.server.pojo.Video;
import com.tanhua.dubbo.server.vo.PageInfo;

import java.util.List;

public interface VideoApi {

    //保存小视频
    String saveVideo(Video video);

    //分页查询小视频列表
    PageInfo<Video> queryVideoList(Integer page, Integer pageSize);

    //关注用户
    Boolean followUser(Long userId, Long followUserId);

    //取消关注用户
    Boolean disFollowUser(Long userId, Long followUserId);

    //根据id查询小视频
    Video queryVideoById(String id);

    //根据vid批量查询视频列表
    List<Video> queryVideoListByPids(List<Long> vids);

}
